/**
 * 数组生成器
 *
 * @author jspankai@vip.qq.com
 * @date 2021/4/28 1:28
 * @className ArrayGenerator
 */
public class ArrayGenerator {

    private ArrayGenerator() {
    }

    public static Integer[] generateOrderedArray(int n) {
        Integer[] arr = new Integer[n];
        for (int i = 0; i < n; i++)
            arr[i] = i;
        return arr;
    }
}
